package cn.xiangxu.com.aops.exceptions;

import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class ExceptionTestAspect {
    @AfterThrowing(value = "target(cn.xiangxu.com.service.SmartSeller)", throwing="iae")
    public void bindException(IllegalArgumentException iae) {

        System.out.println("====bindException====");
        System.out.println("exception:" + iae.getMessage());
        System.out.println("====bindException====");

    }
}
